home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 123
/
(Vol 123) Jan 13 2011.iso
/
Games
/
island_fishing.swf
/
scripts
/
frame_143
/
PlaceObject2_69_9
/
CLIPACTIONRECORD onClipEvent(enterFrame).as
Wrap
Text File
|
2011-01-13
|
2KB
|
58 lines
onClipEvent(enterFrame){
if(_root.f1.hooked <= 0)
{
if(_root.f2.hooked <= 0)
{
if(_root.f3.hooked <= 0)
{
if(_root.f4.hooked <= 0)
{
if(_root.f4.hooked <= 0)
{
if(_root.f5.hooked <= 0)
{
if(_root.f6.hooked <= 0)
{
if(_root.f7.hooked <= 0)
{
if(_root.f8.hooked <= 0)
{
if(_root.f9.hooked <= 0)
{
if(_root.f10.hooked <= 0)
{
if(_root.fish < _root.fishtotal)
{
minY = 175;
myRadians = Math.atan2(_root._ymouse - this._y,_root._xmouse - this._x);
myDegrees = Math.round(myRadians * 180 / 3.141592653589793);
_root.yChange = Math.round(_root._ymouse - this._y);
_root.xChange = Math.round(_root._xmouse - this._x);
_root.yMove = Math.round(_root.yChange / 50);
_root.xMove = Math.round(_root.xChange / 50);
if(this._y > minY)
{
_root.reelable = 1;
this._y += _root.yMove;
}
else
{
_root.reelable = 0;
_root.guy.hand.gotoAndStop(1);
this._y += 5;
}
this._x += _root.xMove;
}
}
}
}
}
}
}
}
}
}
}
}
}